Personal device security using cryptocurrency wallets

ABSTRACT

A method of encrypting data at an electronic device where the electronic device is associated with a key device. Each device is associated with an asymmetric cryptography pair, each pair including a first private key and a first public key. Respective second private and public keys may be determined based on the first private key, first public key and a deterministic key. A secret may be determined based on the second private and public keys. The data at the electronic device may be encrypted using the determined secret or an encryption key that is based on the secret. Information indicative of the deterministic key may be sent to the key device where the information may be stored.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. application Ser. No. 16/079,082 filed Aug. 21, 2018, entitled “PERSONAL DEVICE SECURITY USING ELLIPTIC CURVE CRYPTOGRAPHY FOR SECRET SHARING,” a national stage entry based on PCT/IB2017/050815 filed Feb. 14, 2017, entitled “PERSONAL DEVICE SECURITY USING ELLIPTIC CURVE CRYPTOGRAPHY FOR SECRET SHARING,” which claims priority to and incorporates by reference for all purposes the full disclosures of United Kingdom Application No. GB1619301.3 filed Nov. 15, 2016, entitled “Determining a common secret for two blockchain nodes for the secure exchange of information.” United Kingdom Application No. GB1603122.1 filed Feb. 23, 2016, entitled “Personal device security using cryptocurrency wallets,” and United Kingdom Application No. GB1603117.1 filed Feb. 23, 2016, entitled “Determining a common secret for two blockchain nodes for the secure exchange of information.”

TECHNICAL FIELD

The present disclosure relates to a method, a system and a device for encrypting data stored on an electronic device. The present disclosure further relates to a method, a system and a device for decrypting the encrypted data.

BACKGROUND

Cryptography involves techniques for protecting data on a hard disk of an electronic device, for example in the event that the electronic device is lost or stolen. An electronic device may include a laptop computer, a desktop computer, a tablet computer, a mobile communication device and any other form of computing device. The electronic device may be associated with a natural person, a group of people such as employees of a company, a system such as a banking system, etc.

In some cases, the data on a hard disk of the electronic device may be protected by a password, passphrase or a PIN. However, short codes such as 4-8 character PINs can easily be determined by trialling different combinations of characters. Passwords and passphrases may be more secure than PINs. However, the level of security depends on the user memorising a lengthy set of code words or a sentence.

In other cases, a cryptographic key may be used to protect the data on the hard disk of the electronic device. The cryptographic key may be stored on a USB drive which needs to be physically connected to the electronic device to transmit the cryptographic key. However, due to electromagnetic signals that are generated during the transmission of the cryptographic key from the USB drive to the electronic device, the transmitted key may still be obtained by a third party.

Therefore a problem in such cryptographic data protection is the transmission of the secret key to the electronic device.

Any discussion of documents, acts, materials, devices, articles or the like which has been included in the present specification is not to be taken as an admission that any or all of these matters form part of the prior art base or were common general knowledge in the field relevant to the present disclosure as it existed before the priority date of each claim of this application.

Throughout this specification the word “comprise”, or variations such as “comprises” or “comprising”, will be understood to imply the inclusion of a stated element, integer or step, or group of elements, integers or steps, but not the exclusion of any other element, integer or step, or group of elements, integers or steps.

SUMMARY

A computer implemented method of encrypting data at an electronic device (S), the electronic device being associated with a key device (C), wherein the electronic device is further associated with a first asymmetric cryptography pair having a first electronic device private key (V_(1S)) and a first electronic device public key (P_(1S)), and the key device is associated with a second asymmetric cryptography pair having a first key device private key (V_(1C)) and a first key device public key (P_(1C)); the method comprising:

-   -   determining, at the electronic device, a deterministic key (DK);     -   receiving, at the electronic device, the first key device public         key (P_(1C)) from the key device;     -   determining, at the electronic device, a second electronic         device private key (V_(2S)) based on at least the first         electronic device private key (V_(1S)) and the deterministic key         (DK), and     -   determining, at the electronic device, a second key device         public key (P_(2C)) based on at least the first key device         public key (P_(1C)) and the deterministic key (DK);     -   determining a secret based on at least the second electronic         device private key (V_(2S)) and the second key device public key         (P_(2C));     -   encrypting the data at the electronic device using the         determined secret or an encryption key that is based on the         determined secret; and     -   sending information indicative of the deterministic key (DK) to         the key device where the information can be stored.

The method may further comprise storing, at the key device, the information indicative of the deterministic key (DK).

The deterministic key (DK) may be based on a message (M). The method may comprise a step of generating the message (M) at the electronic device. The method may further comprise determining the deterministic key (DK) based on determining a hash of the message (M). The step of storing information indicative of the deterministic key on the key device may comprise storing the message (M) on the key device.

The method may comprise determining a second electronic device public key (P_(2S)) based on at least the first electronic device public key (P_(1S)) and the deterministic key (DK).

The method may also comprise: sending from the electronic device to the key device, a notice indicative of using a common elliptic curve cryptography (ECC) system with a common generator (G).

The first electronic device public key (P_(1S)) and the first key device public key (P_(1C)) may be based on elliptic curve point multiplication of the respective first electronic device private key (V_(1S)) and first key device private key (V_(1C)) and the common generator (G).

The method may comprise generating the first electronic device private key (V_(1S)) and the first electronic device public key (P_(1S)). For example, the first electronic device private key (V_(1S)) may be generated based on a random integer in an allowable range specified in the common ECC system; and the first electronic device public key (P_(1S)) may be generated based on elliptic curve point multiplication of the first electronic device private key (V_(1C)) and the common generator (G) according to the following formula: P _(1S) =V _(1S) ×G

The second electronic device private key (V_(2S)) may be based on a scalar addition of the first electronic device private key (V_(1S)) and the deterministic key (DK) according to the following formula: V _(2S) =V _(1S) +DK

The second electronic device public key (P_(2S)) may be based on at least the first electronic device public key (P_(1S)) with elliptic curve point addition to the deterministic key (DK). In a specific example, the second electronic device public key (P_(2S)) may be based on the first electronic device public key (P_(1S)) with elliptic curve point addition to the elliptic curve point multiplication of the deterministic key (DK) and the common generator (G) according to the following formula: P _(2S) =P _(1S) +DK×G.

The second key device public key (P_(2C)) may be based on at least the first key device public key (P_(1C)) with elliptic curve point addition to the deterministic key (DK). In a specific example, the second key device public key (P_(2C)) may be based on the first key device public key (P_(1C)) with elliptic curve point addition to the elliptic curve point multiplication of the deterministic key (DK) and the common generator (G) according to the following formula: P _(2C) =P _(1C) +DK×G

The method may comprise determining the encryption key based on the determined secret. For example, the encryption key may be based on the secret and identification information of the electronic device. The identification information may comprise a serial number of the electronic device.

The method may comprise connecting the electronic device with the key device to be in communication with each other. For example, the electronic device may be connected to the key device via a wireless protocol, such as Bluetooth or a communications network, for example the internet, or a local communications network. Alternatively, the electronic device may be connected to the key device by virtue of a wire, for example via cable or a suitable port of the electronic device.

The method may further comprise storing, at a data storage associated with the electronic device, the first key device public key (P_(1C)).

A computer implemented method of decrypting data at an electronic device, the data being encrypted in accordance with the method of encrypting data as described above, the method of decrypted the data comprising:

receiving, at the electronic device, the information indicative of the deterministic key (DK), from the key device;

determining the secret based on the received information indicative of the deterministic key (DK); and

decrypting, at the electronic device, the encrypted data using the secret or the encryption key that is based on the secret.

The method may comprise authenticating the key device. For this, the method may comprise generating, at the electronic device, an authentication message (M_(A)) and sending the authentication message (M_(A)) to the key device.

The method may comprise generating, at the key device, a second asymmetric cryptography pair having a second key device private key (V_(2C)) and a second key device public key (P_(2C)). The second key device private key (V_(2C)) may be based on a deterministic authentication key (DK_(A)) and the first key device private key (V_(1C)). The second key device public key (P_(2C)) may be based on the deterministic authentication key (DK_(A)) and the first key device public key (P_(1C)).

The method may comprise determining the deterministic authentication key (DK_(A)). For example, the deterministic authentication key (DK_(A)) may be determined based on the authentication message (M_(A)), such as by determining a hash of the message (M_(A)).

The method may include generating, at the key device, a signed authentication message (SM_(A)) based on the deterministic authentication key (DK_(A)) and the second key device private key (V_(2C)).

The method may further include: receiving, at the electronic device, the signed authentication message (SM_(A)) from the key device; validating the signed message (SM_(A)) with the second key device public key (P_(2C)); and authenticating the key device based on the result of validating the signed authentication message (SM_(A)).

The method of decrypting the data may comprise requesting, at the electronic device, the information indicative of the deterministic key (DK) from the key device. In embodiments in which the information indicative of the deterministic key (DK) comprises the message (M), in response to receiving the request at the key device, the key device may generate a signed message (SM) based on the message (M) and send the signed message (SM) to the electronic device. The signed message (SM) may be generated based on the message (M) and the first or second key device private key.

The method of decrypting the data may further comprise validating, at the electronic device, the signed message (SM) and retrieving the message (M) such that the secret can be determined, at the electronic device, for decrypting the data.

A computer system for encrypting data at an electronic device, the computer system comprising:

-   -   the electronic device being associated with a first asymmetric         cryptography pair having a first electronic device private key         (V_(1S)) and a first electronic device public key (P_(1S)),     -   a key device being associated with a second asymmetric         cryptography pair having a first key device private key (V_(1C))         and a first key device public key (P_(1C));     -   wherein the electronic device comprises a processor configured         to:         -   determine a deterministic key (DK);         -   receive the first key device public key (P_(1C)) from the             key device;         -   determine a second electronic device private key (V_(2S))             based on at least the first electronic device private key             (V_(1S)) and the deterministic key (DK), and         -   determine a second key device public key (P_(2C)) based on             at least the first key device public key (P_(1C)) and the             deterministic key (DK);         -   determine a secret based on at least the second electronic             device private key (V_(2S)) and the second key device public             key (P_(2C)); and         -   encrypt the data on the electronic device using the             determined secret or an encryption key that is based on the             determined secret;     -   wherein information indicative of the deterministic key (DK) is         stored on the key device.

The deterministic key (DK) may be based on a message (M). The processor may be configured to generate the message (M). The processor may further be configured to determine the deterministic key (DK) based on determining a hash of the message (M).

The processor may be configured to determine a second electronic device public key (P_(2S)) based on at least the first electronic device public key (P_(1S)) and the deterministic key (DK).

In the system, the electronic device may comprise an interface and the key device may comprise a key device interface to establish communication between the electronic device and the key device. For example, the electronic device may be connected to the key device via a wireless protocol, such as Bluetooth or a communications network, for example the internet, or a local communications network. Alternatively, the electronic device may be connected to the key device by virtue of a wire, for example via cable or a suitable port of the electronic device.

The interface of the electronic device may be configured to send a notice indicative of using a common elliptic curve cryptography (ECC) system with a common generator (G) to the key device interface of the associated key device.

The first electronic device public key (P_(1S)) and the first key device public key (P_(1C)) may be based on elliptic curve point multiplication of respective first electronic device private key (V_(1S)) and first key device private key (V_(1C)) and a generator (G).

The processor may be configured to generate the first electronic device private key (V_(1S)) and the first electronic device public key (P_(1S)). For example, the first electronic device private key (V_(1S)) may be generated based on a random integer in an allowable range specified in the common ECC system; and the first electronic device public key (P_(1S)) may be generated based on elliptic curve point multiplication of the first electronic device private key (V_(1C)) and the common generator (G) according to the following formula: P _(1S) =V _(1S) ×G

The second electronic device private key (V_(2S)) may be based on a scalar addition of the first electronic device private key (V_(1S)) and the deterministic key (DK) according to the following formula: V _(2S) =V _(1S) +DK

The second electronic device public key (P_(2S)) may be based on at least the first electronic device public key (P_(1S)) with elliptic curve point addition to the deterministic key (DK). In a specific example, the second electronic device public key (P_(2S)) may be based on the first electronic device public key (P_(1S)) with elliptic curve point addition to the elliptic curve point multiplication of the deterministic key (DK) and the common generator (G) according to the following formula: P _(2S) =P _(1S) +DK×G.

The second key device public key (P_(2C)) may be based on at least the first key device public key (P_(1C)) with elliptic curve point addition to the deterministic key (DK). In a specific example, the second key device public key (P_(2C)) may be based on the first key device public key (P_(1C)) with elliptic curve point addition to the elliptic curve point multiplication of the deterministic key (DK) and the common generator (G) according to the following formula: P _(1C) =P _(1C) +DK×G

The processor may be configured to determine the encryption key based on the determined secret. For example, the encryption key may be based on the determined secret and identification information of the electronic device. The identification information may comprise a serial number of the electronic device.

The electronic device may comprise a data storage in which the first key device public key (P_(1C)) may be stored.

The key device may comprise a key device data storage for storing at least the information indicative of the deterministic key.

The computer system as described above further configured to decrypt data, the processor of the electronic device being configured to:

receive the information indicative of the deterministic key (DK), from the key device;

determine the secret based on the information indicative of the deterministic key (DK); and

decrypt the data using the determined secret or the encryption key that is based on the determined secret.

The processor may be configured to authenticate the key device. For this, the processor may generate an authentication message (M_(A)) and send the authentication message (M_(A)) to the key device.

The key device may comprise a key device processor that may be configured to generate a second asymmetric cryptography pair having a second key device private key (V_(2C)) and a second key device public key (P_(2C)). The second key device private key (V_(2C)) may be based on a deterministic authentication key (DK_(A)) and the first key device private key (V_(1C)). The second key device public key (P_(2C)) may be based on the deterministic authentication key (DK_(A)) and the first key device public key (P_(1C)).

The key device processor may further be configured to determine the deterministic authentication key (DK_(A)). For example, the deterministic authentication key (DK_(A)) may be determined based on the authentication message (M_(A)), such as by determining a hash of the message (M_(A)).

The key device processor may be configured to generate a signed authentication message (SM_(A)) based on the deterministic authentication key (DK_(A)) and the second key device private key (V_(2C)).

The processor of the electronic device may be configured to: receive the signed authentication message (SM_(A)) from the key device; validate the signed message (SM_(A)) with the second key device public key (P_(2C)); and authenticate the key device based on the result of validating the signed authentication message (SM_(A)).

The processor of the electronic device may request the information indicative of the deterministic key (DK) from the key device. In embodiments in which the information indicative of the deterministic key (DK) comprises the message (M), in response to receiving the request at the key device, the key device processor may generate a signed message (SM) based on the message (M) and send the signed message (SM) to the electronic device. The signed message (SM) may be generated based on the message (M) and the first or second key device private key.

The processor of the electronic device may further be configured to validate the signed message and retrieving the message (M) such that the secret can be determined for decrypting the data.

An electronic device for encrypting data, the electronic device being associated with a key device, wherein the electronic device is associated with a first asymmetric cryptography pair having a first electronic device private key (V_(1S)) and a first electronic device public key (P_(1S)), and the key device is associated with a second asymmetric cryptography pair having a first key device private key (V_(1C)) and a first key device public key (P_(1C)); the electronic device comprising a processing device configured to:

-   -   determine a deterministic key (DK);     -   receive the first key device public key (P_(1C)) from the         associated key device;     -   determine a second electronic device private key (V_(2S)) based         on at least the first electronic device private key (V_(1S)) and         the deterministic key (DK), and     -   determine a second key device public key (P_(2C)) based on at         least the first key device public key (P_(1C)) and the         deterministic key (DK);     -   determine a secret based on at least the second electronic         device private key (V_(2S)) and the second key device public key         (P_(2C)); and     -   encrypt the data on the electronic device using the determined         secret or an encryption key that is based on the determined         secret;     -   wherein information indicative of the deterministic key (DK) is         sent to the key device where it can be stored.

A computer program comprising machine-readable instructions to cause a processing device of an electronic device to implement any one of the methods described above.

BRIEF DESCRIPTION OF DRAWINGS

Examples of the present disclosure will be described with reference to the following figures:

FIG. 1 is a schematic diagram of an example system to encrypt data;

FIG. 2 is a flow chart of computer-implemented methods for registering the electronic device and the key device of FIG. 1;

FIG. 3 is a flow chart of a computer-implemented method for encrypting data at the electronic device of FIG. 1 using a secret;

FIG. 4 is a flow chart of a computer-implemented method of authenticating the key device of FIG. 1;

FIG. 5 is a flow chart of a computer implemented method of decrypting the encrypted data at the electronic device following authentication of the key device; and

FIG. 6 illustrates a schematic of an example processing device.

DESCRIPTION OF EMBODIMENTS

Overview

A method, device and system to encrypt data at an electronic device will now be described.

FIG. 1 illustrates a computer system 1 that includes an electronic device 3 that is in communication with a key device 5. The electronic device 3 has an associated first processing device 23 and the key device 5 has an associated second processing device 25. The electronic device 3 may be a personal electronic device, such as a laptop computer, a desk computer, a tablet computer, a mobile communication device, a computer server or any other computing device capable of processing data. In this particular example as illustrated in FIG. 1, the electronic device 3 is represented by a laptop computer.

The key device 7 may be a further personal electronic device, such as a mobile communication device, a portable memory device, such as a USB drive or the like. In this particular example as illustrated in FIG. 1, the key device 5 is represented by a mobile communication device.

The electronic device 3 may be in communication with the key device 5 via a wireless protocol, such as Bluetooth or a communications network, for example the internet or a local communications network. Alternatively, the electronic device 3 may be physically connected to the key device 5, for example via a USB port of the electronic device or via a cable connection. In this particular example as illustrated in FIG. 1, the electronic device 3 is in communication with the key device 5 via Bluetooth 7.

The electronic device 3 is associated with a first asymmetric cryptography pair having an electronic device master private key (V_(1S)) and an electronic device master public key (P_(1S)). The key device 5 is associated with a second asymmetric cryptography pair having a key device master private key (V_(1C)) and a key device master public key (P_(1C)). The first and second asymmetric cryptography pairs may be generated during registration. Methods of registration 200, 300 performed by the electronic device 3 and the key device 5 will be described in further detail below with reference to FIG. 2. The public key for each device may be shared between the devices 3, 5 publicly, for example via Bluetooth 7.

To encrypt data at the electronic device 3, a secret is determined based on a technique similar to the technique described in the co-filed application no. GB1603117.1 (Feb. 23, 2016), and GB1619301.3 (filed Nov. 15, 2016), both entitled “Determining a common secret for two Blockchain nodes for the secure exchange of information” filed at the Intellectual Property Office by the applicant, which is herein incorporated by reference in its entirety. The secret is determined on a private cryptography key of the electronic device 3 and a public cryptography key of the key device 5. By determining the secret, data can be encrypted using an encryption key (E) that is based on the determined secret. In some examples, the secret may be used as the encryption key (E). One of the advantages of this technique is that there is no need for transmitting or storing the secret or the encryption key (E) on any of the devices 3, 5.

To encrypt the data using the secret at the electronic device 3, the method 400 is performed without communicating any of the private keys between the devices 3, 5 which will be described in further detail with reference to FIG. 3.

In general, the method of encrypting data performed by the electronic device 3 initially includes connecting the electronic device 3 with a key device 5 to communicate with the key device 5. The communication may be established through a wired connection or a wireless connection, such as Bluetooth 7.

The method further includes determining a deterministic key (DK) which may be based on a message (M) created by the electronic device 3. For example, the processing device 23 of the electronic device 3 may generate a message (M) and then uses a standard algorithm to create a hash of the message forming the deterministic key (DK).

The method further includes determining a second electronic device private key (V_(2S)) based on at least the electronic device master private key (V_(1S)) and the deterministic key (DK), and determining a second key device public key (P_(2C)) based on the key device master public key (P_(1C)) and the deterministic key (DK). A secret is then determined based on the second electronic device private key (V_(2S)) and the second key device public key (P_(2C)). Optionally, the method may include determining a second electronic device public key (P_(2S)) based on at least the electronic device master public key (P_(1S)) and the deterministic key (DK).

In a further method step, data can then be encrypted using an encryption key (E) that is based on the determined secret. As mentioned above, the determined secret itself may be used as encryption key (E), or the encryption key (E) may be determined based on the secret. Following encrypting the data on the electronic device, the secret may be erased and only the deterministic key (DK) or the message (M) may be sent to the key device 5 where it can be securely stored. The deterministic key (DK) or the message (M) stored on the key device 5 can subsequently be used to decrypt the encrypted data.

It will be appreciated that the data to be encrypted/decrypted may comprise one or more individual files, one or more folders comprising files or an entire hard drive of the electronic device. In some examples, the method may comprise prompting a user to select the files and/or folders that are to be encrypted/decrypted. In such case, the key device 5 may store information indicative of a deterministic key for each file and folder and link them accordingly.

Method of Registration 200, 300

An example of methods of registration 200, 300 will be described with reference to FIG. 2, where method 200 is performed by the electronic device 3 and method 300 is performed by the key device 5. This includes establishing the first and second asymmetric cryptography pairs for the respective devices 3, 5.

The asymmetric cryptography pairs include associated private and public keys, such as those used in public-key encryption. In this example, the asymmetric cryptography pairs are generated using Elliptic Curve Cryptography (ECC) and properties of elliptic curve operations.

Standards for ECC may include known standards such as those described by the Standards for Efficient Cryptography Group (www.sceg.org). Elliptic curve cryptography is also described in U.S. Pat. Nos. 5,600,725, 5,761,305, 5,889,865, 5,896,455, 5,933,504, 6,122,736, 6,141,420, 6,618,483, 6,704,870, 6,785,813, 6,078,667, 6,792,530.

In the method 200, 300, this includes the electronic device 3 and the key device 5 settling 210, 310 to a common ECC system and using a common generator (G). In one example, the common ECC system may be based on secp256K1 which is an ECC system used by Bitcoin. The common generator (G) may be selected, randomly generated, or assigned.

In the specific example illustrated in FIG. 1 in which the electronic device 3 is a laptop computer and the key device 5 is a mobile communication device, communications between the respective devices 3, 5 are realised by an application programming interface (API) communicating with a dedicated application installed on the mobile communications device 5. For this, software may be downloaded and installed on the laptop computer which is compatible with the dedicated application installed on the mobile communication device.

In a specific example, the key device 5 may be provided with not only the software application for the key device but also with the software for the electronic device. In this way, when the key device is connected to the electronic device, the software can be installed on the electronic device by executing the installation from the key device.

Turning now to the method 200 performed by the electronic device 3, the method 200 includes settling 210 on the common ECC system and common generator (G). This may include sending information indicative of the common ECC system and common generator from the electronic device 3 to the key device 5, or receiving the information from a third device, such as remote server computer. For example, the electronic device 3 may send, via Bluetooth 7, a notice indicative of using the common ECC system with a common generator (G) to the key device 5. In turn, the key device 5 may settle 310 by sending a notice indicative of an acknowledgment to using the common ECC system and common generator (G).

The method 200 also includes generating 220, at the electronic device 3, a first asymmetric cryptography pair that includes the electronic device master private key (V_(1S)) and the electronic device master public key (P_(1S)). In this particular example, the electronic device master private key (V_(1S)) is determined based, at least in part, on a random integer in an allowable range specified in the common ECC system. The electronic device master public key (P_(1S)) is then determined based on elliptic curve point multiplication of the electronic device master private key (P_(1S)) and the common generator (G) according to the formula: P _(1S) =V _(1S) ×G  (Equation 1)

Thus the first asymmetric cryptography pair includes:

-   -   V_(1S): The electronic device master private key that is kept         secret by the electronic device.     -   P_(1S): The electronic device master public key that is made         publicly known.

The electronic device 3 may store the first asymmetric cryptography pair in a first data storage 13 associated with the electronic device 3. For security, the electronic device master private key (V_(1S)) may be stored in a secure portion of the first data storage 13 to ensure the key remains private.

In this example, the method 200 includes sending 230 the electronic device public master key (P_(1S)) to the key device 3. However, for encrypting the data on the electronic device 3, this step may not be necessary.

Turning now to the method 300 performed by the key device 5, in this specific example the key device 5 receives 320 the electronic device master public key (P_(1S)) and stores 330 the received electronic device master public key (P_(1S)) within a storage element of the key device 5.

Similar to the method 200, the method 300 at the key device 5 includes generating 340 a second asymmetric cryptography pair that includes the key device master private key (V_(1C)) and the key device master public key (P_(1C)). The key device master private key (V_(1C)) is also a random integer within the allowable range specified in the common ECC system. In turn, the key device master public key (P_(1C)) is determined by the following formula: P _(1C) =V _(1C) ×G  (Equation 2)

Thus the second asymmetric cryptography pair includes:

-   -   V_(1C): The key device master private key that is kept secret by         the key device.     -   P_(1C): The key device master public key that is made publicly         known.

The key device 5 may store the second asymmetric cryptography pair in a second data store 15 of the key device. The method 300 further includes sending 330 the key device master public key (P_(1C)) to the electronic device 3 where it may be stored in storage 13.

In some alternatives, the respective public master keys may be received and stored at a third data store associate with a third device, such as a trusted third party. This may include a third party that acts as a public directory, such as a certification authority. Thus in some examples, the key device master public key (P_(1C)) may be requested and received by the electronic device 3 only when determining the secret is required.

The registration steps may only need to occur once as an initial setup. Afterwards, the master keys can be reused in a secure matter to determine the secret that is dependent, inter alia, on the deterministic key (DK).

Encryption of Data at the Electronic Device 3

An exemplary method 400 of encrypting data at the electronic device 3 by determining a secret that is based on a private key of the electronic device 3 and a public key of the key device 5 will now be described with reference to FIG. 3. The secret may be used for one cycle only, each cycle being a full round of encryption and decryption of the data.

It will be appreciated that new private and public keys may be determined for both the electronic device and the key device for each cycle of encryption and decryption. The new private and public keys may for example be determined by re-hashing the message (M) as described in further detail in the co-filed application as mentioned above which is herein incorporated by reference in its entirety. In this way, sub-keys may be created, wherein each sub-key is linked to the master key.

Generating a Message (M) 410

In this example, the method 400 includes generating 410 a message (M) at the electronic device 3. The message (M) may be random, pseudorandom, or user defined. In one example, the message (M) is based on Unix time and a nonce (and arbitrary value). For example, the message (M) may be provided as: Message(M)=Unix Time+nonce  (Equation 3)

In some examples, the message (M) is arbitrary. However it is to be appreciated that the message (M) may have selective values (such as Unix Time, etc.) that may be useful in some applications.

The method 400 includes sending 420 the message (M) via Bluetooth 7, to the key device 5 where the message (M) will be stored. Importantly, the message (M) may be sent to the key device 5 over an unsecure network as the message (M) does not include information on the private keys.

It will be appreciated that the message (M) may be communicated to the key device 5 at any time. For example, the message (M) may be sent to the key device 5 after the encryption of the data is completed.

Determining a Deterministic Key 430

The method 400 further includes the step of determining 430 a deterministic key (DK) based on the message (M). In this example, this includes determining a cryptographic hash of the message. An example of a cryptographic hash algorithm includes SHA-256 to create a 256-bit deterministic key (DK). That is: DK=SHA-256(M)  (Equation 4)

The selection of message may be arbitrary for the purpose of generating the encryption key (E) and will be newly selected for each encryption/decryption cycle. In this example, the message (M) is reduced to 160 bits by hashing in order to keep the message length short.

It is to be appreciated that other hash algorithms may be used. This may include other hash algorithms in the Secure Hash Algorithm (SHA) family. Some particular examples include instances in the SHA-3 subset, including SHA3-224, SHA3-256, SHA3-384, SHA3-512, SHAKE128, SHAKE256. Other hash algorithms may include those in the RACE Integrity Primitives Evaluation Message Digest (RIPEMD) family. A particular example may include RIPEMD-160. Other hash functions may be based on Zémor-Tillich hash function and knapsack-based hash functions.

Determining Second Private and Public Keys 440, 450, 460

The method 400 then includes determining 440, 450, 460 the following second keys based on the deterministic key (DK), i.e. the hash of the message (M).

The second electronic device private key (V_(2S)) is determined 440 based on the electronic device master private key (V_(1S)) and the hash of the message (M). This can be based on a scalar addition of the electronic device master private key (V_(1S)) and the hash of the message (M) according to the following formula: V _(2S) =V _(1S)+SHA-256(M)  (Equation 5)

The second electronic device public key (P_(2S)) is determined 450 based on the electronic device master public key (P_(1S)) and the hash of the message (M). This can be determined based on the following formula: P _(2S) =P _(1S)+SHA-256(M)×G  (Equation 6)

The second key device public key (P_(2C)) is determined 460 based on the key device master public key (P_(1C)) and the hash of the message (M). This can be determined according to the following formula: P _(2C) =P _(1C)+SHA-256(M)×G  (Equation 7)

It should be noted that in this specific example in which elliptic curve cryptography is applied, ‘G’ refers to the generator, the operator ‘+’ refers to elliptic curve point addition and the operator ‘×’ refers to elliptic curve point multiplication.

Furthermore, it should be noted that for the encryption of the data, it may not be necessary to determine the second electronic device public key P_(2S). As will be described in further detail below, for determining the secret, the second electronic device public key P_(2S) may not be necessary.

Determine the Secret 470

The electronic device 3 may then determine 470 the secret based on the determined second electronic device private key (V_(2S)) and the determined second key device public key (P_(2C)). The secret may be determined by the electronic device 3 according to the following formula: CS=V _(2C) ×P _(2S)  (Equation 8) The Secret and Encryption Key

The secret may be used as asymmetric encryption key, or as the basis for determining a symmetric encryption key.

In this particular example, the method 400 includes a further step of determining 480 an encryption key (E) based on the determined secret. The encryption key (E) is further based on the electronic device's serial number to ensure that the encryption key (E) is specific to the electronic device 3. The encryption key (E) is determined according to the following formula: E=SHA256(SHA256(salt+secret)+serial number)  (Equation 9)

Where salt=message (M)

In this particular example, the concept of random salts is used to determine the encryption key (E). It will be appreciated that any suitable techniques to calculate an encryption key (E) based on the determined secret may be used (if any).

The method 400 further includes encrypting 490 the data, at the electronic device 3, using the determined encryption key (E). It will be appreciated that any suitable method for encrypting the data using the encryption key (E) may be used.

Importantly, the electronic device 3 does not need to store the encryption key (E) or the secret as this can be re-calculated based on the message (M) which is stored on a data storage of the key device 5.

Decryption of the Encrypted Data

Following the encryption of the data at the electronic device 3, a method of decrypting the encrypted data at the electronic device 3 will now be described with reference to FIGS. 4 and 5. To decrypt the data, the electronic device 3 re-calculates the secret which was previously determined when the data was encrypted.

Initially, the electronic device 3 is connected to the key device 5 to be in communication with each other. The step of connecting the respective devices 3, 5 may include determining whether the respective software running on the devices is compatible and synchronised.

Authenticating 500 the Key Device 5

Before the encrypted data is decrypted at the electronic device 3, in this particular example, the key device 5 is initially authenticated by the electronic device 3.

A method of authenticating 500 the key device 5 will be described with reference to FIG. 4. The method of authenticating 500 the key device 5 may be part of the decryption cycle of the data at the electronic device 3.

The method 500 includes generating 510 an authentication message (M_(A)) at the electronic device 3 which will be used to authenticate that the key device 5 is the key device 5. It will be appreciated that the generated message (M_(A)) may solely be used for the authentication of the key device 5. However, in some examples, the authentication message (M_(A)) may form the message (M) as described with reference to FIG. 3 used in the encryption process for the next encryption-decryption cycle.

The method 500 includes receiving 520 the authentication message (M_(A)) at the key device 5 via Bluetooth 7 from the electronic device 3.

The key device 5 then determines 530 a deterministic authentication key (DK_(A)) based on the message (M_(A)). For example, the deterministic authentication key (DK_(A)) may be the hash of the authentication message similar to step 430 of method 400 and can be determined according to the following formula: DK _(A)=SHA-256(M _(A))  (Equation 10)

The key device 5 then determines anew asymmetric cryptography pair based on the deterministic authentication key (DK_(A)). Specific to this example, the method 500 includes determining 540 a second key device private key V_(2C) according to the following formula: V _(2C) =V _(1C)+SHA-256(M _(A))  (Equation 11)

The method 500 also includes determining 550 a second key device public key P_(2C) according to the following formula. P _(2C) =P _(1C)+SHA-256(M _(A))×G  (Equation 12)

The method 300 further includes generating 560 a signed message (SM_(A)) based on the authentication message (M_(A)) and the determined second key device private key (V_(2C)). Generating a signed message includes applying a digital signature algorithm to digitally sign the authentication message (M_(A)). In one example, this includes applying the second key device private key (V_(2C)) to the message in an Elliptic Curve Digital Signature Algorithm (ECDSA) to obtain the signed message (SM_(A)). The authentication message (M_(A)) may be signed according to the following formula: SM _(A)=Sig−V _(2C) <M _(A)>  (Equation 13)

Examples of ECDSA include those based on ECC systems with secp256k1, secp256r1, secp384r1, se3cp521r1.

The signed authentication message (SM_(A)) is subsequently sent 570 to the electronic device 3 for authentication of the key device 5.

The method 500 includes receiving 580 the signed authentication message (SM_(A)) from the key device 5. The electronic device 3 may then validate 590 the signature on the signed authentication message (SM_(A)) with the second key device public key (P_(2C)) that was determined at step 550.

Verifying the digital signature may be done in accordance with an Elliptic Curve Digital Signature Algorithm (ECDSA). Importantly, the signed authentication message (SM_(A)) that was signed with the second key device private key (V_(2C)) should only be correctly verified with the corresponding second key device public key (P_(2C)), since V_(2C) and P_(2C) form a cryptographic pair. Since these keys are deterministic of the key device master private key (V_(1C)) and the key device master public key (P_(1C)) that were generated at registration of the key device, verifying the signed authentication message (SM_(A)) can be used as a basis of authenticating that an alleged key device 5 sending the signed message (SM_(A)) is the same key device 5 as during registration.

Re-Calculate the Encryption Key (E) to Decrypt the Encrypted Data

Following successful authentication of the key device 5, the electronic device 3 decrypts the encrypted data by re-calculating the secret and thereby the encryption key (E). An exemplary method 600 of decrypting the encrypted data will now be described with reference to FIG. 5.

The method 600 includes requesting 610 the message (M) that was previously used in the encryption cycle and stored on the key device 5 as described in step 420 of method 400.

The method 600 then includes receiving 630 message (M). In this particular example, the message (M) is signed 620 by the key device 5 using the second key device private key (V_(2C)) before the message (M) is sent to the electronic device 3. The message (M) may be signed according to the following formula: SM=Sig−V _(2C) <M>  (Equation 14)

The method 600 further includes verifying 650 the signed message (SM). This may be done by independently determining the second key device public key (P_(2C)) and then performing applying an Elliptic Curve Digital Signature Algorithm (ECDSA) to SM and P_(2C). The second key device public key may be determined according to the following formula: P _(2C) =P _(1C)+SHA-256(M)×G  (Equation 15)

The method 600 then includes retrieving 660 the message (M) from the signed message (M) so that the electronic device 3 can re-calculate 670 the secret following steps 430 to 470 as described with reference to FIG. 3.

In a further step 680, the encryption key (E) is re-determined based on the secret and the electronic device's serial number as described with reference to step 480 of method 400. Once the encryption key (E) is determined, the data can be decrypted 690.

It will be appreciated that for decrypting the encrypted data, a method of authentication as described with reference to FIG. 4 may not be necessary for some embodiments.

Processing Device

As noted above, the electronic device 3 and the key device 5 may be personal electronic devices, such as a laptop computer, tablet computer, mobile communication device, computer server etc. The electronic device may include a processing device 23, 25, a data store 13, 15 and a user interface 14.

FIG. 6 illustrates an example of a processing device 23, 25. The processing device 23, 25 may be used at the electronic device 3, or the key device 5. The processing device 23, 25 includes a processor 1510, a memory 1520 and an interface device 1540 that communicate with each other via a bus 1530. The memory 1520 stores instructions and data for implementing the method 200, 300, 400, 500 and 600 described above, and the processor 1510 performs the instructions from the memory 1520 to implement the method 200, 300, 400, 500 and 600. The interface device 1540, may include a communications module that facilitates communication with the communications network, such as Bluetooth 7 and, in some examples, with the user interface 14 and peripherals such as data store 13, 15. It should be noted that although the processing device 1501 may be independent network elements, the processing device 1501 may also be part of another network element. Further, some functions performed by the processing device 1501 may be distributed between multiple network elements. For example, the electronic device 3 may have multiple processing devices 23 to perform method 200, 400 and parts of method 500, 600 in a secure local area network associated with the electronic device 3.

Where this disclosure describes that a user, issuer, merchant, provider or other entity performs a particular action (including signing, issuing, determining, calculating, sending, receiving, creating etc.), this wording is used for the sake of clarity of presentation. It should be understood that these actions are performed by the computing devices operated by these entities.

Signing may comprise executing a cryptographic function. The function has an input for a clear text and an input for a key, such as a private key. A processor may execute the function to calculate a number or string that can be used as a signature. The signature is then provided together with the clear text to provide a signed text. The signature changes completely if the message text or the key changes by a single bit. While calculating the signature requires little computational power, recreating a message that has a given signature is practically impossible. This way, the clear text can only be changed and accompanied by a valid signature if the private key is available. Further, other entities can easily verify the signature using the publicly available public key.

In most circumstances, encrypting and decrypting comprises a processor executing a cryptographic function to calculate an output string representing the encrypted message or the clear text message respectively.

Keys, tokens, metadata, transactions, offers, contracts, signatures, scripts, metadata, invitations, and the like refer to binary data represented as numbers, text or strings stored on data memory, such as variables in program code of type “string” or “int” or other types or text files.

An example of the peer-to-peer ledger is the bitcoin Blockchain. Transferring funds or paying fees in bitcoin currency comprises creating a transaction on the bitcoin Blockchain with the funds or fees being output from the transaction. An example of a bitcoin transaction includes an input transaction hash, a transaction amount one or more destinations, a public key of a payee or payees and a signature created by using the input transaction as the input message and a private key of a payer to calculate the signature. The transaction can be verified by checking that the input transaction hash exists in a copy of the bitcoin Blockchain and that the signature is correct using the public key. To ensure that the same input transaction hash has not been used elsewhere already, the transaction is broadcast to a network of computing nodes (‘miners’). A miner accepts and records the transaction on the Blockchain only if the input transaction hash is not yet connected and the signatures are valid. A miner rejects the transaction if the input transaction hash is already linked to a different transaction.

When two items are associated, this means that there is a logical connection between these items. In a database, for example, identifiers for the two items may be stored in the same records to make the two items associated with each other. In a transaction, identifiers for the two items may be included in the transaction string to make the two items associated with each other.

Authorising another entity may comprise calculating a signature string of a transaction using a private key and providing the signature string to the entity to allow the entity to use the signature to verify the transaction.

A user having an account with another entity may comprise the entity storing information about the user, such as email address, name and potentially public keys. For example, the entity may maintain a database, such as SQL, OrientDB, MongoDB or others. In some examples, the entity may also store one or more of the user's private keys.

It will be appreciated by persons skilled in the art that numerous variations and/or modifications may be made to the above-described embodiments, without departing from the broad general scope of the present disclosure. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive. 

What is claimed is:
 1. A computer implemented method of determining a common secret at an electronic device (S), the electronic device being associated with a key device (C), wherein the electronic device is further associated with a first asymmetric cryptography pair having a first electronic device private key (V_(1S)) and a first electronic device public key (P_(1S)), and the key device is associated with a second asymmetric cryptography pair having a first key device private key (V_(1C)) and a first key device public key (P_(1C)), the method comprising: determining, at the electronic device, a deterministic key (DK); receiving, at the electronic device, the first key device public key (P_(1C)) from the key device; determining, at the electronic device, a second electronic device private key (V_(2S)) based on at least the first electronic device private key (V_(1S)) and the deterministic key (DK); determining, at the electronic device, a second key device public key (P_(2C)) based on at least the first key device public key (P_(1C)) and the deterministic key (DK); determining a secret based on at least the second electronic device private key (V_(2S)) and the second key device public key (P_(2C)); sending information indicative of the deterministic key (DK) to the key device; generating, at the electronic device, an authentication message (M_(A)); sending the authentication message (M_(A)) to the key device; determining a deterministic authentication key (DK_(A)) by determining a hash of the authentication message (M_(A)); generating, at the key device, a signed authentication message (SM_(A)) based on the deterministic authentication key (DK_(A)) and a second key device private key (V_(2C)); receiving, at the electronic device, the signed authentication message (SM_(A)) from the key device; validating the signed message (SM_(A)) with the second key device public key (P_(2C)); and authenticating the key device based on the result of validating the signed authentication message (SM_(A)); and wherein the second key device private key (V_(2C)) is based on the deterministic authentication key (DK_(A)) and the first key device private key (V_(1C)), and the second key device public key (P_(2C)) is based on the deterministic authentication key (DK_(A)) and the first key device public key (P_(1C)).
 2. The method of claim 1, further comprising: generating, at the key device, a second asymmetric cryptography pair having the second key device private key (V2C) and the second key device public key (P_(2C)).
 3. The method of claim 1, further comprising: encrypting the data at the electronic device using the determined secret or an encryption key that is based on the determined secret.
 4. The method of claim 3, further comprising: receiving, at the electronic device, the information indicative of the deterministic key (DK), from the key device; determining the secret based on the received information indicative of the deterministic key (DK); and decrypting, at the electronic device, the encrypted data using the secret or the encryption key that is based on the secret.
 5. The method of claim 4, further comprising: requesting, at the electronic device, the information indicative of the deterministic key (DK) from the key device; generating, at the key device, a signed message (SM) based on a message (M); sending the signed message (SM) to the electronic device; validating, at the electronic device, the signed message (SM); and retrieving the message (M) such that the secret is to be determined, at the electronic device, for decrypting the data.
 6. The method of claim 1 further comprising: storing, at the key device, the information indicative of the deterministic key (DK).
 7. The method of claim 1, wherein: the deterministic key (DK) is based on a message (M).
 8. The method of claim 7, further comprising: generating the message (M) at the electronic device; and determining the deterministic key (DK) based on determining a hash of the message (M).
 9. The method of claim 1, further comprising: determining a second electronic device public key (P_(2S)) based on at least the first electronic device public key (P_(1S)) and the deterministic key (DK).
 10. The method of claim 1, further comprising: sending from the electronic device to the key device, a notice indicative of using a common elliptic curve cryptography (ECC) system with a common generator (G).
 11. The method of claim 10, wherein: the first electronic device public key (P_(1S)) and the first key device public key (P_(1C)) are based on elliptic curve point multiplication of the respective first electronic device private key (V_(1S)) and first key device private key (V_(1C)) and the common generator (G).
 12. The method of claim 1, further comprising: generating the first electronic device private key (V_(1S)) based on a random integer in an allowable range specified in the common ECC system; and generating the first electronic device public key (P_(1S)) based on elliptic curve point multiplication of the first electronic device private key (V_(1C)) and the common generator (G) according to the following formula: P _(1S) =V _(1S) ×G.
 13. The method of claim 10, further comprising: generating the second electronic device private key (V_(2S)) based on a scalar addition of the first electronic device private key (V_(1S)) and the deterministic key (DK) according to the following formula: V _(2S) =V _(1S) +DK.
 14. The method of claim 10, further comprising: generating the second electronic device public key (P_(2S)) based on at least the first electronic device public key (P_(1S)) with elliptic curve point addition to the deterministic key (DK).
 15. The method of claim 14, wherein: the second electronic device public key (P_(2S)) is based on the first electronic device public key (P_(1S)) with elliptic curve point addition to the elliptic curve point multiplication of the deterministic key (DK) and the common generator (G) according to the following formula: P _(2S) =P _(1S) +DK×G.
 16. The method of claim 10, further comprising: generating the second key device public key (P_(2C)) based on at least the first key device public key (P_(1C)) with elliptic curve point addition to the deterministic key (DK).
 17. The method of claim 16, wherein: the second key device public key (P_(2C)) is based on the first key device public key (P_(1C)) with elliptic curve point addition to the elliptic curve point multiplication of the deterministic key (DK) and the common generator (G) according to the following formula: P _(2C) =P _(1C) +DK×G.
 18. The method of claim 1, further comprising: determining the encryption key based on the determined secret and identification information of the electronic device.
 19. The method of claim 1, further comprising: storing, at a data storage associated with the electronic device, the first key device public key (P_(1C)).
 20. A computer system for determining a common secret at an electronic device, the computer system comprising: the electronic device being associated with a first asymmetric cryptography pair having a first electronic device private key (V_(1S)) and a first electronic device public key (P_(1S)), a key device being associated with a second asymmetric cryptography pair having a first key device private key (V_(1C)) and a first key device public key (P_(1C)); wherein the electronic device comprises a processor configured to: determine a deterministic key (DK); receive the first key device public key (P_(1C)) from the key device; determine a second electronic device private key (V_(2S)) based on at least the first electronic device private key (V_(1S)) and the deterministic key (DK); determine a second key device public key (P_(2C)) based on at least the first key device public key (P_(1C)) and the deterministic key (DK); determine a secret based on at least the second electronic device private key (V_(2S)) and the second key device public key (P_(2C)); generate, at the electronic device, an authentication message (M_(A)); and send the authentication message (M_(A)) to the key device; determine a deterministic authentication key (DK_(A)) by determining a hash of the authentication message (M_(A)); generate, at the key device, a signed authentication message (SM_(A)) based on the deterministic authentication key (DK_(A)) and a second key device private key (V_(2C)); receive, at the electronic device, the signed authentication message (SM_(A)) from the key device; validate the signed message (SM_(A)) with the second key device public key (P_(2C)); and authenticating the key device based on the result of validating the signed authentication message (SM_(A)); and wherein information indicative of the deterministic key (DK) is stored on the key device and wherein the second key device private key (V₂c) is based on the deterministic authentication key (DK_(A)) and the first key device private key (V_(1C)), and the second key device public key (P_(2C)) is based on the deterministic authentication key (DK_(A)) and the first key device public key (P_(1C)).
 21. The computer system of claim 20, further configured to encrypt the data on the electronic device using the determined secret or an encryption key that is based on the determined secret.
 22. The computer system of claim 21, further configured to decrypt data, the processor of the electronic device being configured to: receive the information indicative of the deterministic key (DK), from the key device; determine the secret based on the information indicative of the deterministic key (DK); and decrypt the data using the determined secretor the encryption key that is based on the determined secret.
 23. An electronic device for determining a common secret, the electronic device being associated with a key device, wherein the electronic device is associated with a first asymmetric cryptography pair having a first electronic device private key (V_(1S)) and a first electronic device public key (P_(1S)), and the key device is associated with a second asymmetric cryptography pair having a first key device private key (V_(1C)) and a first key device public key (P_(1C)), the electronic device comprising a processing device configured to: determine a deterministic key (DK); receive the first key device public key (P_(1C)) from the associated key device; determine a second electronic device private key (V_(2S)) based on at least the first electronic device private key (V_(1S)) and the deterministic key (DK); determine a second key device public key (P_(2C)) based on at least the first key device public key (P_(1C)) and the deterministic key (DK); determine a secret based on at least the second electronic device private key (V_(2S)) and the second key device public key (P_(2C)); generate, at the electronic device, an authentication message (M_(A)); and send the authentication message (M_(A)) to the key device; determine a deterministic authentication key (DK_(A)) by determining a hash of the authentication message (M_(A)); generate, at the key device, a signed authentication message (SM_(A)) based on the deterministic authentication key (DK_(A)) and a second key device private key (V_(2C)); receive, at the electronic device, the signed authentication message (SM_(A)) from the key device; validate the signed message (SM_(A)) with the second key device public key (P_(2C)); and authenticating the key device based on the result of validating the signed authentication message (SM_(A)); and wherein information indicative of the deterministic key (DK) is sent to the key device and wherein the second key device private key (V_(2C)) is based on the deterministic authentication key (DK_(A)) and the first key device private key (V_(1C)), and the second key device public key (P_(2C)) is based on the deterministic authentication key (DK_(A)) and the first key device public key (P_(1C)).
 24. A non-transitory computer-readable storage medium having a computer program embodied thereon comprising machine-readable instructions to cause a processing device of an electronic device to implement the method of claim
 1. 